import { get, post, del } from "../utils/request";

//加载购物车数据
export const loadCartAPI = () => get("/api/v1/shop_carts");

//加入购物车
export const addToCartAPI = (data) => post("/api/v1/shop_carts", data);

//删除购物车数据
export const delFromCartAPI = (id) => del("/api/v1/shop_carts/" + id);
